cmake_minimum_required(VERSION 3.20)
project(TS101)

include_directories(.)
include_directories("../include")

add_definitions(-D __PRINT__ -D __DEBUG__ -D __ADSPTS101__ -D _LANGUAGE_C -D __ADSPTS__ -D __CMAKE__ -D __TS_BYTE_ADDRESS)
#add_definitions(-D __SIMULATE__)


file(GLOB source_files "src/*/*.c*")
file(GLOB head_files "src/*/*.h*")
file(GLOB ts_head_files "../include/*.h*")

add_executable(linkport
        ${source_files} src/main.c ${head_files} ${ts_head_files})
